﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entities
{
    public interface IHangHoaRepository
    {
         HangHoa GetByMaHangHoa(string maHH);
         HangHoa TimTheoTen(string ten);
         IQueryable<HangHoa> GetAll();
         IQueryable<HangHoa> TimHangHoaTheoSoLuong(int soLuong);
         IQueryable<HangHoa> TimHangHoaTheoTen(string tenhh);
         IQueryable<HangHoa> TimHangHoaTheoLoai(string loai);
         void AddNew(HangHoa hangHoa);
         void Update(HangHoa hangHoa);
         void Delete(HangHoa hangHoa);
    }
}
